package com.sg.dto.biz.component.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc UnionMultipleDataSetsDto
 * @使用场景
 */
@Data
public class UnionMultipleDataSetsDto extends BaseDto implements Serializable {

    /**
     * 自定义字段
     */
    @ApiModelProperty("自定义字段")
    private String customField;

    /**
     * 通用文本字段
     */
    @ApiModelProperty("通用文本字段")
    private String comTxtField;
    /**
     * 自定义字段1
     */
    @ApiModelProperty("自定义字段1")
    private String customField1;
    /**
     * 自定义字段2
     */
    @ApiModelProperty("自定义字段2")
    private String customField2;

    /**
     * 自定义字段3
     */
    @ApiModelProperty("自定义字段3")
    private String customField3;

    /**
     * 自定义字段4
     */
    @ApiModelProperty("自定义字段4")
    private String customField4;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        UnionMultipleDataSetsDto that = (UnionMultipleDataSetsDto) o;
        return customField == that.customField && comTxtField == that.comTxtField && customField1 == that.customField1 && customField2 == that.customField2 && customField3 == that.customField3 && customField4 == that.customField4;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), customField, comTxtField, customField1, customField2, customField3, customField4);
    }

}
